package com.njwb.day17.maipiao;

public class Test {
    public static void main(String[] args) {
        Ticket ticket = new Ticket(100); // 假设有 10 张票

        SellTicket sellTask = new SellTicket(ticket);

        Thread t1 = new Thread(sellTask, "售票点1");
        Thread t2 = new Thread(sellTask, "售票点2");
        Thread t3 = new Thread(sellTask, "售票点3");

        t1.start();
        t2.start();
        t3.start();
    }
}
